package com.mowh.gof23.structural.patterns.facade.pagemaker;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author mowh1gd
 * @create 2023/10/25 16:50
 */
public class Database {
    private Database() {
    }
    public static Properties getProperties(String dbName) {
        Properties properties = new Properties();
        try {
            properties.load(new FileInputStream(dbName));
        } catch (IOException e) {
            System.out.println("Warning: " + dbName + " is not found.");
        }
        return properties;
    }
}
